// import { createApp } from 'vue'
// import App from './App.vue'

// import './assets/main.css'

// import ElementPlus from 'element-plus'
// import 'element-plus/dist/index.css'

// createApp(App).mount('#app')
// const app = createApp(App)

// app.use(ElementPlus)
// app.mount('#app')

import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import util from './utils/util'
import router from './router/index'
import App from './App.vue'
import Vuex from 'vuex'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import * as ElIconModules from '@element-plus/icons'

import '@assets/global.css'

const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}

for (let iconName in ElIconModules) {
    app.component(iconName, ElIconModules[iconName])
}
app.config.globalProperties['$utils'] = util;
app.use(ElementPlus).use(router).use(Vuex).mount('#app')
// app.mount('#app')